<template>
 
  <div>
  <div class="item">用户名：{{form.username}}</div>

    <div class="item">邮箱：{{form.email}}</div>
    <div class="item">手机号：{{form.phone}}</div>
  </div>
</template>

<script>
import Cookies from "js-cookie";
export default
{
  name: "homev",
  data() {

    return {
      form: Cookies.get('user') ? JSON.parse(Cookies.get('user')) :{
        username:'',
        phone:'',
        email:''
      }
    }
  },
  created() {
    request.get('/admin/'+this.form.id).then(res =>
    {
      this.form=res.data
    })

  }
}
</script>
<style>
.item
{
  margin: 0px 0px;
  position: marker;
}
</style>